<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content" id="customModule">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>字典管理</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li>
                    <a>配置管理</a>
                </li>
                <li class="active">
                    <strong>字典管理</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="enterpriseNameCondition" name="enterpriseNameCondition" v-model="enterpriseNameCondition" placeholder="上报企业" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search" @click="search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh" @click="reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group">
                                <a @click="addRecord();" class="btn btn-success" data-toggle="modal" v-if="isAdd"
                                >
                                    <i class="fa fa-plus"></i>添加
                                </a>
                                <!--<a class="btn btn-primary single disabled">-->
                                <!--<i class="fa fa-edit"></i> 修改-->
                                <!--</a>-->
                                <!--<a class="btn btn-danger multiple disabled">-->
                                <!--<i class="fa fa-remove"></i> 删除-->
                                <!--</a>-->
                            </div>

                            <table class="table table-striped table-bordered table-hover " id="tableList" >
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">无害化申报</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label">免疫日期：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" v-model="immuneTime" id="immuneTime" name="immuneTime" placeholder="请选择日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">免疫数量：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="number" name="number" v-model="number" placeholder="免疫数量" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">疫苗名称：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="vaccineName" name="vaccineName" v-model="vaccineName" placeholder="疫苗名称" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">疫苗生产厂家：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" v-model="manufacturers" id="manufacturers" name="manufacturers" placeholder="疫苗生产厂家" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">批号：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="batchNumber" name="batchNumber" v-model="batchNumber" placeholder="批号" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">有效期：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" v-model="validity" id="validity" name="validity" placeholder="请选择日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">免疫方法：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="methods" name="methods" v-model="methods" placeholder="免疫方法" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">免疫剂量：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="dose" name="dose" v-model="dose" placeholder="免疫剂量" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">备注：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="remark" name="remark" v-model="remark" placeholder="备注" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" @click="saveRecord();"><i class="fa fa-save"></i>&nbsp;保存</button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/dict/dict.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Dict.init();
</script>
</html>